<template>
  <view class="yuongjin">
    <u-parse :html="data.value"></u-parse>
  </view>
</template>

<script>
export default {
  components: {
  },
  mixins: [],
  data() {
    return {
      data: {}
    }
  },
  onShow() {
    this.liandongshouce()
    this.$api.sendRequest({
      url: "/api/member/judgeBuy",
      success: res => {
        console.log(res,'/api/member/judgeBuy');
        if(!res.data){
          uni.hideShareMenu()
        }
      }
    });
  },
  onLoad(data) {
    },
  methods: {
    liandongshouce() {
      this.$api.sendRequest({
        url: '/api/member/liandongshouce',
        success: res => {
          this.data = res.data
          console.log(this.data, 'this.data');
        }
      });
    },

  },
  onShareTimeline() {
    return {
      title: '鹏城快享',
      query: `source_member=${uni.getStorageSync("user_id")}`,
      imageUrl: ""
    }
  },
  onShareAppMessage() {
    return {
      title: "鹏城快享",
      path: `/pages/index/index?source_member=${uni.getStorageSync("user_id")}`,
      imageUrl: ''
    }
  },
};
</script>

<style lang="scss" scoped>
@import '@/common/css/diy.scss';

.yuongjin {
  margin: 20rpx 30rpx;
  padding: 20px 10px;
  background: #fff;
  border-radius: 10px;
}
</style>

